package org.jeecg.modules.dock.entity.ems.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * WMS-EMS发送纵剪/横剪退纸筒请求
 *
 * @author zhoutong
 */
@ApiModel(value = "WMS-EMS发送纵剪/横剪退纸筒请求", description = "WMS-EMS发送纵剪/横剪退纸筒请求")
@Data
public class CuttingPaperReturnTubeRequestVO extends EmsBaseRequestVO {

    @NotNull(message = "任务状态不能为空")
    @NotBlank(message = "任务状态不能为空")
    @ApiModelProperty("任务状态：参考下方业务类型说明")
    private String orderCode;

    @NotNull(message = "任务状态不能为空")
    @NotBlank(message = "任务状态不能为空")
    @ApiModelProperty("任务状态：参考下方业务类型说明")
    private String returnSite;

    @NotNull(message = "任务状态不能为空")
    @ApiModelProperty("明细")
    private List<Detail> detail;

    @Data
    public static class Detail implements Serializable {

        @NotNull(message = "纸筒规格")
        @NotBlank(message = "纸筒规格")
        @ApiModelProperty("纸筒规格")
        private String specifications;

        @NotNull(message = "纸筒数量")
        @ApiModelProperty("纸筒数量")
        private Integer quantity;

    }

}
